/// <reference path="jquery-vsdoc.js" />
/// <reference path="jquery-ui-1.8.custom.min.js" />

/*--------------------------------------------------------------------------+
| JSLoad (url           // String  - Scripts location (i.e. http:///a.js)
|         [, container] // Object  - Window with script loading capability
|         [, type]      // String  - Type of script (i.e. text/javascript)
|         [, defer]     // Boolean - Flag for delaying script processing
|         [, language]  // String  - Language script is written in.
|         [, title])    // String  - Title for loaded script
|+--------------------------------------------------------------------------+
| Loads external JavaScripts; used by Import.
*--------------------------------------------------------------------------*/
function JSLoad(url, container, type, defer, language, title) {
    // verify / attain container
    if (container == undefined || container == null) container = this;

    // setup container
    if (typeof container.write == "undefined")
        if (typeof container.document != "undefined")
            container = container.document;
        else throw "Invalid container. Unable to load [" + url + "]";

    // no type set
    if (type == undefined || type == null) {
        type = '';

        // no language so set default type
        if (language == undefined || language == null) {
            language = undefined;
            type = "text/javascript";
        }
    }

    // set default language
    if (language == undefined || language == null) language = "JavaScript";

    // set title
    if (title == undefined || title == null) title = '';

    // set defer
    if (defer == undefined) defer = false;

    HTMLCode = '<script src="' + url +'" type="text/javascript"></script>';
    document.write(HTMLCode);
}

var $import = JSLoad;


$import("../../scripts/ezdeskLib/EzLib.js");
$import("../../scripts/ezdeskLib/EzIE_resize.js");
$import("../../scripts/ezdeskLib/EzTestModel.js");

$import("../../scripts/ezdeskLib/Ajax/EzAjaxbusy.js");
$import("../../scripts/ezdeskLib/Ajax/EzAjaxBusyProgress.js");
$import("../../scripts/ezdeskLib/Ajax/EzdisplayStatusInfo.js");

$import("../../scripts/ezdeskLib/Control/EzMemberSelector.js");
$import("../../scripts/ezdeskLib/Control/EzProjectSelector.js");
$import("../../scripts/ezdeskLib/Control/EzUserSelector.js");
$import("../../scripts/ezdeskLib/Control/EzTimepicker.js");
$import("../../scripts/ezdeskLib/Control/EzWdatePicker.js");

$import("../../scripts/ezdeskLib/View/EzContentsManager.js");
$import("../../scripts/ezdeskLib/View/EzContextPanel.js");
$import("../../scripts/ezdeskLib/View/EzTips.js");
$import("../../scripts/ezdeskLib/View/EzDataTableExtension.js");
$import("../../scripts/ezdeskLib/View/EzWrapTipBox.js");
$import("../../scripts/ezdeskLib/View/EzTipsManager.js");
$import("../../scripts/ezdeskLib/View/EzClickToEditBox.js");
$import("../../scripts/ezdeskLib/View/EzTipBoxDayInfo.js");
$import("../../scripts/ezdeskLib/View/EzHighlight.js");
$import("../../scripts/ezdeskLib/View/EzFormDialog.js");
$import("../../scripts/ezdeskLib/View/EzWorkitemList.js");
$import("../../scripts/ezdeskLib/View/EzFreeContent.js");
$import("../../scripts/ezdeskLib/View/EzScroller.js");


